package com.jsjvm.shared.jdwp.events;

import com.jsjvm.shared.jdwp.data.JDWPLocation;

public class JDWPExceptionEvent extends JDWPEvent {
	private int exceptionID;
	private JDWPLocation throwLocation;
	private JDWPLocation catchLocation;
	
	
	
	public JDWPExceptionEvent(int exceptionID, JDWPLocation throwLocation,
			JDWPLocation catchLocation) {
		super();
		this.exceptionID = exceptionID;
		this.throwLocation = throwLocation;
		this.catchLocation = catchLocation;
	}

	public int getExceptionID() {
		return exceptionID;
	}
	
	public JDWPLocation getThrowLocation() {
		return throwLocation;
	}
	
	public JDWPLocation getCatchLocation() {
		return catchLocation;
	}
	
	@Override
	public EventKind getType() {
		return EventKind.EXCEPTION;
	}
}
